﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace MeTalker.Aide.Forms
{
    internal partial class frmTip : MeForm
    {
        private frmTip()
        {
            InitializeComponent();
            this.Load += new EventHandler(frmTip_Load);
        }

        void frmTip_Load(object sender, EventArgs e)
        {
            Point p = new Point(Screen.PrimaryScreen.WorkingArea.Width - this.Width, Screen.PrimaryScreen.WorkingArea.Height - this.Height);
            this.PointToScreen(p);
            this.Location = p;
            timer1.Interval = 5000;
            timer1.Enabled = true;
        }
        public frmTip(string title, string text)
            : this(text)
        {
            this.Text += title;
        }
        public frmTip(string text)
            : this()
        {
            lblText.Text = text;
        }

        private void timer1_Tick(object sender, EventArgs e)
        {
            timer1.Enabled = false;
            this.Close();
        }
    }
}